﻿using Learn202001.Services;
using System.Web.Mvc;

namespace Learn202001.Controllers
{
    public class StudentController : Controller
    {
        // GET: Student
        public ActionResult Index()
        {
            return RedirectToAction("List");
        }

        public ActionResult List()

        {
            var model = StudentServices.GetAll();
            return View(model);
        }
    }
}